package com.cmc.cloud.cmclink.doc.vo.voyagebsacbadetailvo;

import com.cmc.cloud.cmclink.common.filter.FilterGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 周贤
 * @date 2025/6/12
 */
@Schema(description = "管理后台 - 分类舱位自动批舱匹配条件 批量添加 Response VO")
@Data
@EqualsAndHashCode()
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class VoyageCbaDetailBatchVO {

    @Schema(description = "分类舱位id列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "｛VoyageCbaDetailBatchVO.voyageBsaCbaIds.NotEmpty｝")
    private List<Long> voyageBsaCbaIds;

    @Schema(description = "匹配项json表达式", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "｛VoyageCbaDetailBatchVO.filterGroup.NotNull｝")
    private FilterGroup filterGroup;
}
